package org.agent.service.systemconfig;

import java.util.List;

import org.agent.dao.systemConfig.SystemConfigMapper;
import org.agent.pojo.SystemConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("systemConfigService")
public class SystemConfigServiceImpl implements SystemConfigService {
    @Autowired
	private SystemConfigMapper systemConfigMapper;//按类型装配
	
	@Override
	public List<SystemConfig> getSystemConfigs(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.getSystemConfigs(systemConfig);
	}

	@Override
	public List<SystemConfig> getSystemConfigsIsStart(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.getSystemConfigsIsStart(systemConfig);
	}

	@Override
	public int addSystemConfig(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.addSystemConfig(systemConfig);
	}

	@Override
	public int modifySystemConfig(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.modifySystemConfig(systemConfig);
	}

	@Override
	public int isPeatConfig(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.isPeatConfig(systemConfig);
	}

	@Override
	public int deleteSystemConfig(SystemConfig systemConfig) {
		// TODO Auto-generated method stub
		return systemConfigMapper.deleteSystemConfig(systemConfig);
	}

	@Override
	public int maxTypeValueType(int type) {
		// TODO Auto-generated method stub
		return systemConfigMapper.maxTypeValueType(type);
	}
//set get

	public SystemConfigMapper getSystemConfigMapper() {
		return systemConfigMapper;
	}

	public void setSystemConfigMapper(SystemConfigMapper systemConfigMapper) {
		this.systemConfigMapper = systemConfigMapper;
	}
	
	
	
}
